﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using GameEngine;

namespace DaphneTeacher
{
    /// <summary>
    /// The main teaching class
    /// </summary>
    public class Teacher
    {
        public Teacher()
        {
        }

        /// <summary>
        /// Generates the end game position for training
        /// </summary>
        public void GenerateEndgamePosition(GameManager gameManager, PositionType posType)
        {
            // clear all moves and the board
            gameManager.MoveHistory.ClearMoves();
            gameManager.GameBoard.CleanBoard();
        }

        /// <summary>
        /// Returns end game position types
        /// </summary>
        public List<PositionType> GetEndGamePositionTypes(enumGameType gameType)
        {
            return PositionType.PositionTypes.Where(p => p.GameType == gameType).ToList();
        }
    }
}
